﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace z.m {
	public class Login {
		[Display(Name = "User Name")]
		[Required]
		public string UserName { get; set; }
		[Display(Name = "Password")]
		[Required]
		public string Password { get; set; }
		[Display(Name = "Rememberme")]
		public bool RememberMe { get; set; }
	}
	public class LocalPassword{
		[Display(Name = "Old Password")]
		public string OldPassword { get; set; }
		[Display(Name = "Password")]
		[Required]
		[MinLength(6, ErrorMessage = "{0} must be longer than {1}")]
		public string Password { get; set; }
		[Display(Name = "ConfirmPassword")]
		[Compare("Password")]
		public string ConfirmPassword { get; set; }
	}
	public class PasswordnProfile:db.UserProfile {
		[Display(Name = "Ole Password")]
		public string OlePassword { get; set; }
		[Display(Name = "Password")]
		[Required]
		[MinLength(6, ErrorMessage = "{0} must be longer than {1}")]
		public string Password { get; set; }
		[Display(Name = "ConfirmPassword")]
		[Compare("Password")]
		public string ConfirmPassword { get; set; }
		[Display(Name = "Captcha")]
		[Required(ErrorMessage="Enter character in picture")]
		public string Captcha { get; set; }
	}
	public class RegisterExternalLogin : db.UserProfile {
		public string ExternalLoginData { get; set; }
	}
	public class ExternalLogin {
		public string Provider { get; set; }
		public string ProviderDisplayName { get; set; }
		public string ProviderUserId { get; set; }
	}
}